﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.VO;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.DAL;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS;
using System.Data;

namespace Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS
{
    class UserBusHDNhap
    {
        private HDNhap HDN;

        public UserBusHDNhap()
        {
            HDN = new HDNhap();
        }

        public bool Insert(UserVOHDNhap obj)
        {
            return HDN.Insert(Convert.ToInt32(obj.MANV), obj.NGAYLAP);
        }

        public bool Update(UserVOHDNhap obj)
        {
            return HDN.Update(Convert.ToInt32(obj.MAHOADONNHAP), Convert.ToInt32(obj.MANV), obj.NGAYLAP);
        }

        public bool Delete(UserVOHDNhap obj)
        {
            return HDN.Delete(obj.MAHOADONNHAP);
        }

        public DataTable SelectAllTable()
        {
            return HDN.SelectAll();
        }

        public DataTable SelectID(int MaHD)
        {
            return HDN.SelectID(MaHD);
        }       
    }
}
